package com.usian.api.admin;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;

public interface ChannelControllerApi {
    //根据名称分页查询频道列表
    public ResponseResult findByNameAndPage(ChannelDto dto);
    //新增
    public ResponseResult save(AdChannel channel);
    //修改
    public ResponseResult update(AdChannel channel);
    //删除
    public ResponseResult deleteById(Integer id);

    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();
}
